<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/alert.php';
		?>
		<?php 
		include_once 'public/home/html/select.php';
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrDatatable.css" />
		<script src="public/xr/xrDatatable.js"></script>
		<script src="public/js/list.js"></script>
		<script src="public/home/js/function.js"></script>
		<script src="cust/js/feedbackExport.js"></script>
		<style>
			.content{
				margin-left: 10%;
				margin-top:5%;
			}
			.item{
				margin-top:3%
			}
		</style>
	</head>
	<body>
		<input type="hidden" id="url" value="<?php base_url() ?>">
		<input type="hidden" id='start_time' value="<?=estr($data,'start_time')?>">
		<input type="hidden" id='end_time' value="<?=estr($data,'end_time')?>">
		<div class='content'>
			<?php if($data['data']):?>
			<div><h3>反馈报表【<?php echo $data['start_time'].'至'.$data['end_time']; ?>】</h3></div>
			<div><h4><?php if($data['dept_name']!='')echo '【'.$data['dept_name'].'】'; ?></h4></div>
			<div>
				<?php 
				foreach ($data['data'] as $k => $v) {
					echo "<div class='item'>【".$v['time']."】<br>";
					foreach ($v['data'] as $k1 => $v1) {
						$num=$k1+1;
						echo $num.'.'.'【'.$v1['creator_name'].'】【'.$v1['created_char'].'】'.'【'.$v1['category'].'】【'.$v1['content'].'】<br>';
					}
					echo '</div>';
				}
				 ?>
			</div>			
			<?php else:?>
				<h3>没有查询到数据</h3>
			<?php endif; ?>
		</div>
	</body>
	<script>		
		$("body").keydown(function() {
             if (event.keyCode == "13") {//keyCode=13是回车键
                 $('.searchButton').click();
             }
         });
		$("#status").change(function(){
			$('.searchButton').click();
		});
		$("#show").change(function(){
			$('.searchButton').click();
		});
	</script>
</html>